from django.db import models

# Create your models here.
# python manage.py makemigrations
# python manage.py migrate
class User(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=200,verbose_name='用户名')
    password = models.CharField(max_length=30,verbose_name='密码')

    # 字段的增加
    # 方式一：可以设置为null值
    age = models.IntegerField(verbose_name='年龄',null=True)
    # 方式二：设置默认值
    info = models.CharField(max_length=200,verbose_name="简介",default="perfect")